feat: add OIDC/Keycloak authentication support via Traefik#34
Closed
boehlke wants to merge 8 commits into
Closed
Conversation
- Add OIDC configuration variables to entrypoint - Generate OIDC middleware config when OIDC_ENABLED is set - Apply oidc-auth middleware to routes automatically - Add documentation for plugin loading via command-line
Pass CLI args through command.sh to enable plugin loading. Add experimental plugins section to static config when OIDC is enabled. Fix Go template escaping in OIDC middleware headers and add LoginUri configuration.
- Add /system/auth/oidc-provision route with OIDC middleware - Add /system/auth/who-am-i route without OIDC middleware - Skip auth service routing in OIDC mode - Fix Header template syntax for traefik-oidc-auth plugin - Enable debug logging for troubleshooting Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Configure traefik-oidc-auth plugin for Keycloak authentication - Forward access token to backend via Authorization header Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add autoupdate-theme router for anonymous theme data access - Move oauth2 route from static file to dynamic entrypoint.sh - Apply oidc-auth middleware to oauth2 route when OIDC enabled Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Set HttpOnly: false so the client can detect the OIDC session cookie and use the correct logout flow. Add explicit PostLogoutRedirectUri to redirect back to the app after Keycloak logout. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The autoupdate-theme route (priority 15) was being matched after the general autoupdate route which has OIDC middleware, causing 401 errors for unauthenticated theme requests. Increase to priority 50 so it matches first without requiring authentication. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
traefik-oidc-authplugin (v0.17.0)/auth), OAuth2 callbacks (/oauth2), OIDC provisioning, and who-am-i endpointsautoupdate-themeroute (priority 50) for public theme dataTest plan
docker compose upwith OIDC env vars → Keycloak login page served at/auth/oauth2/callback→/system/auth/oidc-provision→ dashboard/system/autoupdate/themereturns 200 without authentication/oauth2/logoutredirects back to login pageOIDC_ENABLEDunset) still works as before🤖 Generated with Claude Code